#pragma once

#include "Vertex.h"
#include "GeomNode.h"
#include "ArbGeomNode.h"
#include "TriangleNode.h"
#include "CylinderNode.h"
#include "SphereNode.h"
#include "Vect3D.h"
#include <d3d9.h>
#include <d3dx9.h>

GeomNode* BuildTriangle(float length);
GeomNode* BuildCappedCylinder(float fRadius1, float fHight, int iNumSides);
GeomNode* BuildGrid(Vertex* pVerts, int n);
GeomNode* BuildCylinder(float radius, float hight, int numSides);
GeomNode* BuildSphere(float fRadius, int iNumSlices, int iNumStacks);
GeomNode* BuildTri(Vect3D P1, Vect3D P2, Vect3D P3);
GeomNode* BuildArbObj(Vertex* pVertsIn, int nV, short* pIndex, int nI);
D3DXVECTOR3 * getTriangleNormal(D3DXVECTOR3* vVertex1, D3DXVECTOR3* vVertex2, D3DXVECTOR3* vVertex3);
